moved GtkAnchorType and GtkSideType from gtkpacker.h to gtkenum.h.
authorTim Janik <timj@gtk.org>
Sun, 29 Apr 2001 03:08:32 +0000 (03:08 +0000)
committerTim Janik <timj@src.gnome.org>
Sun, 29 Apr 2001 03:08:32 +0000 (03:08 +0000)
Sun Apr 29 03:02:02 2001  Tim Janik  <timj@gtk.org>

        * gtk/gtkpacker.h:
        * gtk/gtkenums.h: moved GtkAnchorType and GtkSideType from gtkpacker.h
         to gtkenum.h.

        * gtk/gtkmain.c (gtk_main_do_event): silence compiler (GDK_SETTING not
        handled in switch).

        * gtk/Makefile.am:
        (gtk.defs): generate enum portions with  glib-mkenums.
        (gtktypebuiltins_evals.c): generate this with glib-mkenums.
        got rid of makeenums.pl and makeenums.awk in distributed tarballs.

        * gtk/gtkaccelgroup.c (gtk_accel_group_add): refined havocs warning
        addition.

        * docs/Changes-2.0.txt: keep a note on signal handlers now
        not getting emitted during the emission they were connected within.

15 files changed:
ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
docs/Changes-2.0.txt
docs/reference/gtk/tmpl/gtksignal.sgml
docs/reference/gtk/tmpl/gtktypeutils.sgml
gtk/Makefile.am
gtk/gtkaccelgroup.c
gtk/gtkenums.h
gtk/gtkmain.c
gtk/gtkpacker.h

index 13c2c148de33906ea83bf5da7a1348e58f36762e..fd26e2cf5c4888b29b8e46595f20bfaf474ca4f3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,23 @@
+Sun Apr 29 03:02:02 2001  Tim Janik  <timj@gtk.org>
+
+        * gtk/gtkpacker.h:
+        * gtk/gtkenums.h: moved GtkAnchorType and GtkSideType from gtkpacker.h
+        to gtkenum.h.
+
+       * gtk/gtkmain.c (gtk_main_do_event): silence compiler (GDK_SETTING not
+       handled in switch).
+
+       * gtk/Makefile.am:
+       (gtk.defs): generate enum portions with  glib-mkenums.
+       (gtktypebuiltins_evals.c): generate this with glib-mkenums.
+       got rid of makeenums.pl and makeenums.awk in distributed tarballs.
+       
+       * gtk/gtkaccelgroup.c (gtk_accel_group_add): refined havocs warning
+       addition.
+
+       * docs/Changes-2.0.txt: keep a note on signal handlers now
+       not getting emitted during the emission they were connected within.
+
 2001-04-28  Havoc Pennington  <hp@pobox.com>
 
        * gtk/gtkcolorsel.c (palette_new): fix bug in tooltip
index 13c2c148de33906ea83bf5da7a1348e58f36762e..fd26e2cf5c4888b29b8e46595f20bfaf474ca4f3 100644 (file)
@@ -1,3 +1,23 @@
+Sun Apr 29 03:02:02 2001  Tim Janik  <timj@gtk.org>
+
+        * gtk/gtkpacker.h:
+        * gtk/gtkenums.h: moved GtkAnchorType and GtkSideType from gtkpacker.h
+        to gtkenum.h.
+
+       * gtk/gtkmain.c (gtk_main_do_event): silence compiler (GDK_SETTING not
+       handled in switch).
+
+       * gtk/Makefile.am:
+       (gtk.defs): generate enum portions with  glib-mkenums.
+       (gtktypebuiltins_evals.c): generate this with glib-mkenums.
+       got rid of makeenums.pl and makeenums.awk in distributed tarballs.
+       
+       * gtk/gtkaccelgroup.c (gtk_accel_group_add): refined havocs warning
+       addition.
+
+       * docs/Changes-2.0.txt: keep a note on signal handlers now
+       not getting emitted during the emission they were connected within.
+
 2001-04-28  Havoc Pennington  <hp@pobox.com>
 
        * gtk/gtkcolorsel.c (palette_new): fix bug in tooltip
index 13c2c148de33906ea83bf5da7a1348e58f36762e..fd26e2cf5c4888b29b8e46595f20bfaf474ca4f3 100644 (file)
@@ -1,3 +1,23 @@
+Sun Apr 29 03:02:02 2001  Tim Janik  <timj@gtk.org>
+
+        * gtk/gtkpacker.h:
+        * gtk/gtkenums.h: moved GtkAnchorType and GtkSideType from gtkpacker.h
+        to gtkenum.h.
+
+       * gtk/gtkmain.c (gtk_main_do_event): silence compiler (GDK_SETTING not
+       handled in switch).
+
+       * gtk/Makefile.am:
+       (gtk.defs): generate enum portions with  glib-mkenums.
+       (gtktypebuiltins_evals.c): generate this with glib-mkenums.
+       got rid of makeenums.pl and makeenums.awk in distributed tarballs.
+       
+       * gtk/gtkaccelgroup.c (gtk_accel_group_add): refined havocs warning
+       addition.
+
+       * docs/Changes-2.0.txt: keep a note on signal handlers now
+       not getting emitted during the emission they were connected within.
+
 2001-04-28  Havoc Pennington  <hp@pobox.com>
 
        * gtk/gtkcolorsel.c (palette_new): fix bug in tooltip
index 13c2c148de33906ea83bf5da7a1348e58f36762e..fd26e2cf5c4888b29b8e46595f20bfaf474ca4f3 100644 (file)
@@ -1,3 +1,23 @@
+Sun Apr 29 03:02:02 2001  Tim Janik  <timj@gtk.org>
+
+        * gtk/gtkpacker.h:
+        * gtk/gtkenums.h: moved GtkAnchorType and GtkSideType from gtkpacker.h
+        to gtkenum.h.
+
+       * gtk/gtkmain.c (gtk_main_do_event): silence compiler (GDK_SETTING not
+       handled in switch).
+
+       * gtk/Makefile.am:
+       (gtk.defs): generate enum portions with  glib-mkenums.
+       (gtktypebuiltins_evals.c): generate this with glib-mkenums.
+       got rid of makeenums.pl and makeenums.awk in distributed tarballs.
+       
+       * gtk/gtkaccelgroup.c (gtk_accel_group_add): refined havocs warning
+       addition.
+
+       * docs/Changes-2.0.txt: keep a note on signal handlers now
+       not getting emitted during the emission they were connected within.
+
 2001-04-28  Havoc Pennington  <hp@pobox.com>
 
        * gtk/gtkcolorsel.c (palette_new): fix bug in tooltip
index 13c2c148de33906ea83bf5da7a1348e58f36762e..fd26e2cf5c4888b29b8e46595f20bfaf474ca4f3 100644 (file)
@@ -1,3 +1,23 @@
+Sun Apr 29 03:02:02 2001  Tim Janik  <timj@gtk.org>
+
+        * gtk/gtkpacker.h:
+        * gtk/gtkenums.h: moved GtkAnchorType and GtkSideType from gtkpacker.h
+        to gtkenum.h.
+
+       * gtk/gtkmain.c (gtk_main_do_event): silence compiler (GDK_SETTING not
+       handled in switch).
+
+       * gtk/Makefile.am:
+       (gtk.defs): generate enum portions with  glib-mkenums.
+       (gtktypebuiltins_evals.c): generate this with glib-mkenums.
+       got rid of makeenums.pl and makeenums.awk in distributed tarballs.
+       
+       * gtk/gtkaccelgroup.c (gtk_accel_group_add): refined havocs warning
+       addition.
+
+       * docs/Changes-2.0.txt: keep a note on signal handlers now
+       not getting emitted during the emission they were connected within.
+
 2001-04-28  Havoc Pennington  <hp@pobox.com>
 
        * gtk/gtkcolorsel.c (palette_new): fix bug in tooltip
index 13c2c148de33906ea83bf5da7a1348e58f36762e..fd26e2cf5c4888b29b8e46595f20bfaf474ca4f3 100644 (file)
@@ -1,3 +1,23 @@
+Sun Apr 29 03:02:02 2001  Tim Janik  <timj@gtk.org>
+
+        * gtk/gtkpacker.h:
+        * gtk/gtkenums.h: moved GtkAnchorType and GtkSideType from gtkpacker.h
+        to gtkenum.h.
+
+       * gtk/gtkmain.c (gtk_main_do_event): silence compiler (GDK_SETTING not
+       handled in switch).
+
+       * gtk/Makefile.am:
+       (gtk.defs): generate enum portions with  glib-mkenums.
+       (gtktypebuiltins_evals.c): generate this with glib-mkenums.
+       got rid of makeenums.pl and makeenums.awk in distributed tarballs.
+       
+       * gtk/gtkaccelgroup.c (gtk_accel_group_add): refined havocs warning
+       addition.
+
+       * docs/Changes-2.0.txt: keep a note on signal handlers now
+       not getting emitted during the emission they were connected within.
+
 2001-04-28  Havoc Pennington  <hp@pobox.com>
 
        * gtk/gtkcolorsel.c (palette_new): fix bug in tooltip
index 13c2c148de33906ea83bf5da7a1348e58f36762e..fd26e2cf5c4888b29b8e46595f20bfaf474ca4f3 100644 (file)
@@ -1,3 +1,23 @@
+Sun Apr 29 03:02:02 2001  Tim Janik  <timj@gtk.org>
+
+        * gtk/gtkpacker.h:
+        * gtk/gtkenums.h: moved GtkAnchorType and GtkSideType from gtkpacker.h
+        to gtkenum.h.
+
+       * gtk/gtkmain.c (gtk_main_do_event): silence compiler (GDK_SETTING not
+       handled in switch).
+
+       * gtk/Makefile.am:
+       (gtk.defs): generate enum portions with  glib-mkenums.
+       (gtktypebuiltins_evals.c): generate this with glib-mkenums.
+       got rid of makeenums.pl and makeenums.awk in distributed tarballs.
+       
+       * gtk/gtkaccelgroup.c (gtk_accel_group_add): refined havocs warning
+       addition.
+
+       * docs/Changes-2.0.txt: keep a note on signal handlers now
+       not getting emitted during the emission they were connected within.
+
 2001-04-28  Havoc Pennington  <hp@pobox.com>
 
        * gtk/gtkcolorsel.c (palette_new): fix bug in tooltip
index 304c968e06289f3861413d6b4478e87b9a523893..460b0cbc2a617d7d4fed217f2f9417a9b562b6d4 100644 (file)
@@ -135,6 +135,10 @@ Incompatible Changes from GTK+-1.2 to GTK+-2.0:
   not supported anymore.
   For many of the removed functions, similar variants are available
   in the g_signal_* namespace.
+  The GSignal system perfomrs emissions in a slightly different manner than
+  the old GtkSignal code. Signal handlers that are connected to signal "foo"
+  on object "bar" while "foo" is being emitted, will not be called anymore
+  during the emission they were connected within.
 
 * Inserting and deleting text in GtkEntry though functions such
   as gtk_entry_insert_text() now leave the cursor at its original
index 52c116c2669424ee67fa86a75fde108134a0ac42..1a5a4f3e27e616f7c1cd07d369ee283e3247611f 100644 (file)
@@ -289,7 +289,7 @@ you don't want a return value.
 the callbacks.
 
 
-<!-- ##### MACRO gtk_signal_lookup ##### -->
+<!-- ##### FUNCTION gtk_signal_lookup ##### -->
 <para>
 Given the name of the signal and the type of object it connects
 to, get the signal's identifying integer.  Emitting the signal
@@ -304,7 +304,7 @@ It also tries the ancestors of the given type.
 @Returns: the signal's identifying number, or 0 if no signal was found.
 
 
-<!-- ##### MACRO gtk_signal_name ##### -->
+<!-- ##### FUNCTION gtk_signal_name ##### -->
 <para>
 Given the signal's identifier, find its name.
 </para>
@@ -381,7 +381,7 @@ an array of GtkArgs instead of using C's varargs mechanism.
 followed by one which is a pointer to the return type.
 
 
-<!-- ##### MACRO gtk_signal_emit_stop ##### -->
+<!-- ##### FUNCTION gtk_signal_emit_stop ##### -->
 <para>
 This function aborts a signal's current emission.
 </para>
@@ -415,7 +415,7 @@ except it will lookup the signal id for you.
 @name: the name of the signal you wish to stop.
 
 
-<!-- ##### MACRO gtk_signal_connect ##### -->
+<!-- ##### FUNCTION gtk_signal_connect ##### -->
 <para>
 Attach a function pointer and user data to a signal for
 a particular object.
@@ -467,7 +467,7 @@ is getting pressed, this is that button.
 @d: 
 
 
-<!-- ##### MACRO gtk_signal_connect_after ##### -->
+<!-- ##### FUNCTION gtk_signal_connect_after ##### -->
 <para>
 Attach a function pointer and user data to a signal
 so that this handler will be called after the other handlers.
@@ -485,7 +485,7 @@ so that this handler will be called after the other handlers.
 @d: 
 
 
-<!-- ##### MACRO gtk_signal_connect_object ##### -->
+<!-- ##### FUNCTION gtk_signal_connect_object ##### -->
 <para>
 This function is for registering a callback that will
 call another object's callback.  That is,
@@ -520,7 +520,7 @@ really pass any gpointer as the #slot_object .)
 @d: 
 
 
-<!-- ##### MACRO gtk_signal_connect_object_after ##### -->
+<!-- ##### FUNCTION gtk_signal_connect_object_after ##### -->
 <para>
 Attach a signal hook to a signal, passing in an alternate
 object as the first parameter, and guaranteeing 
@@ -626,7 +626,7 @@ should signal the removal of this signal.
 @name: name of the signal.
 
 
-<!-- ##### MACRO gtk_signal_disconnect ##### -->
+<!-- ##### FUNCTION gtk_signal_disconnect ##### -->
 <para>
 Destroy a user-defined handler connection.
 </para>
@@ -635,7 +635,7 @@ Destroy a user-defined handler connection.
 @handler_id: the connection id.
 
 
-<!-- ##### MACRO gtk_signal_disconnect_by_func ##### -->
+<!-- ##### FUNCTION gtk_signal_disconnect_by_func ##### -->
 <para>
 Destroy all connections for a particular object, with
 the given function-pointer and user-data.
@@ -650,7 +650,7 @@ the given function-pointer and user-data.
 @d: 
 
 
-<!-- ##### MACRO gtk_signal_disconnect_by_data ##### -->
+<!-- ##### FUNCTION gtk_signal_disconnect_by_data ##### -->
 <para>
 Destroy all connections for a particular object, with
 the given user-data.
@@ -663,7 +663,7 @@ the given user-data.
 @d: 
 
 
-<!-- ##### MACRO gtk_signal_handler_block ##### -->
+<!-- ##### FUNCTION gtk_signal_handler_block ##### -->
 <para>
 Prevent an user-defined handler from being invoked.  All other
 signal processing will go on as normal, but this particular
@@ -674,7 +674,7 @@ handler will ignore it.
 @handler_id: the connection id.
 
 
-<!-- ##### MACRO gtk_signal_handler_block_by_func ##### -->
+<!-- ##### FUNCTION gtk_signal_handler_block_by_func ##### -->
 <para>
 Prevent a user-defined handler from being invoked, by reference to
 the user-defined handler's function pointer and user data.  (It may result in
@@ -690,7 +690,7 @@ multiple hooks being blocked, if you've called connect multiple times.)
 @d: 
 
 
-<!-- ##### MACRO gtk_signal_handler_block_by_data ##### -->
+<!-- ##### FUNCTION gtk_signal_handler_block_by_data ##### -->
 <para>
 Prevent all user-defined handlers with a certain user data from being invoked.
 </para>
@@ -702,7 +702,7 @@ Prevent all user-defined handlers with a certain user data from being invoked.
 @d: 
 
 
-<!-- ##### MACRO gtk_signal_handler_unblock ##### -->
+<!-- ##### FUNCTION gtk_signal_handler_unblock ##### -->
 <para>
 Undo a block, by connection id.  Note that undoing a block doesn't
 necessarily make the hook callable, because if you block a
@@ -714,7 +714,7 @@ hook twice, you must unblock it twice.
 gtk_signal_connect(), etc.
 
 
-<!-- ##### MACRO gtk_signal_handler_unblock_by_func ##### -->
+<!-- ##### FUNCTION gtk_signal_handler_unblock_by_func ##### -->
 <para>
 Undo a block, by function pointer and data.
 Note that undoing a block doesn't
@@ -731,7 +731,7 @@ hook twice, you must unblock it twice.
 @d: 
 
 
-<!-- ##### MACRO gtk_signal_handler_unblock_by_data ##### -->
+<!-- ##### FUNCTION gtk_signal_handler_unblock_by_data ##### -->
 <para>
 Undo block(s), to all signals for a particular object
 with a particular user-data pointer
@@ -744,7 +744,7 @@ with a particular user-data pointer
 @d: 
 
 
-<!-- ##### MACRO gtk_signal_handler_pending ##### -->
+<!-- ##### FUNCTION gtk_signal_handler_pending ##### -->
 <para>
 Returns a connection id corresponding to a given signal id and object.
 </para>
@@ -766,7 +766,7 @@ handler.
 @b: 
 
 
-<!-- ##### MACRO gtk_signal_handler_pending_by_func ##### -->
+<!-- ##### FUNCTION gtk_signal_handler_pending_by_func ##### -->
 <para>
 Returns a connection id corresponding to a given signal id, object, function
 pointer and user data.
index e6a3ad7abf01c3cbbc7aaefd9be0a16fdf318e1a..6295e2dfa13c7a3966a7f8539ef3509ca5119ff6 100644 (file)
@@ -560,7 +560,7 @@ Create a new, unique type.
 @type_info: must not be null, and @type_info->type_name must also not be null.
 
 
-<!-- ##### MACRO gtk_type_name ##### -->
+<!-- ##### FUNCTION gtk_type_name ##### -->
 <para>
 </para>
 
@@ -568,7 +568,7 @@ Create a new, unique type.
 @Returns: a pointer to the name of a type, or NULL if it has none.
 
 
-<!-- ##### MACRO gtk_type_from_name ##### -->
+<!-- ##### FUNCTION gtk_type_from_name ##### -->
 <para>
 Get the internal representation of a type given its name.
 </para>
@@ -577,7 +577,7 @@ Get the internal representation of a type given its name.
 @Returns: a GtkType
 
 
-<!-- ##### MACRO gtk_type_parent ##### -->
+<!-- ##### FUNCTION gtk_type_parent ##### -->
 <para>
 
 </para>
@@ -608,7 +608,7 @@ has all the proper initializers called.
 @Returns: gpointer to a GtkTypeObject
 
 
-<!-- ##### MACRO gtk_type_is_a ##### -->
+<!-- ##### FUNCTION gtk_type_is_a ##### -->
 <para>
 Look in the type hierarchy to see if @type has @is_a_type among its
 ancestors.  Do so with a simple lookup, not a loop.
index 18ba9b231fd684612ab60877666a58ca1ee4b269..1822458844e69855148cb4b3c47f6aa1d60d3007 100644 (file)
@@ -394,8 +394,6 @@ gtk_built_sources = @STRIP_BEGIN@ \
 # their own .lo rules and don't get publically installed
 gtk_extra_sources = @STRIP_BEGIN@ \
        gtkcompat.h.in          \
-       makeenums.pl            \
-       makeenums.awk           \
        maketypes.awk           \
        makeenums.h             \
        gtkargcollector.c       \
@@ -432,9 +430,14 @@ gtk.defs gtkmarshal.h gtktypebuiltins.h:          # never add deps here
 # versions in the build dir. thus a development setup requires
 # srcdir to be writable, passing --disable-rebuilds to
 # ../configure will supress all autogeneration rules.
-$(srcdir)/stamp-gtk.defs: @REBUILD@ makeenums.pl gtk.defs gtk-boxed.defs $(gtk_public_h_sources)
+$(srcdir)/stamp-gtk.defs: @REBUILD@ gtk.defs gtk-boxed.defs $(gtk_public_h_sources)
        cd $(srcdir) \
-       && $(PERL) makeenums.pl defs $(gtk_public_h_sources) > xgen-gdef \
+       && glib-mkenums --comments ";; @comment@" \
+                       --fprod "; enumerations from \"@filename@\"\n " \
+                       --vhead "(define-@type@ @EnumName@" \
+                       --vprod "   (@valuenick@ @VALUENAME@)" \
+                       --vtail ")" \
+                       $(gtk_public_h_sources) > xgen-gdef \
        && cat gtk-boxed.defs >> xgen-gdef \
        && (cmp -s xgen-gdef gtk.defs || cp xgen-gdef gtk.defs) \
        && rm -f xgen-gdef \
@@ -466,9 +469,14 @@ $(srcdir)/gtktypebuiltins_ids.c: @REBUILD@ maketypes.awk stamp-gtk.defs
        && LC_ALL=C $(AWK) -f maketypes.awk gtk.defs entries > xgen-gtbic \
        && cp xgen-gtbic $(@F) \
        && rm -f xgen-gtbic
-$(srcdir)/gtktypebuiltins_evals.c: @REBUILD@ makeenums.pl $(gtk_public_h_sources)
+$(srcdir)/gtktypebuiltins_evals.c: @REBUILD@ $(gtk_public_h_sources)
        cd $(srcdir) \
-       && $(PERL) makeenums.pl arrays $(gtk_public_h_sources) > xgen-gtbec \
+       && glib-mkenums \
+                       --fprod "\n/* enumerations from \"@filename@\" */" \
+                       --vhead "static const GtkEnumValue _@enum_name@_values[] = {" \
+                       --vprod "  { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
+                       --vtail "  { 0, NULL, NULL }\n};" \
+                       $(gtk_public_h_sources) > xgen-gtbec \
        && cp xgen-gtbec $(@F) \
        && rm -f xgen-gtbec
 
index 1f078ff00e6880ea137e3cc78016503a6f6c21a4..f7996bd2903413f0ffd5dba7e651e776919a8e31 100644 (file)
@@ -381,10 +381,10 @@ gtk_accel_group_add (GtkAccelGroup        *accel_group,
   if (!query.signal_id || query.n_params > 0)
     {
       g_warning ("gtk_accel_group_add(): signal \"%s\" in the `%s' class ancestry"
-                "cannot be used as accelerator signal (perhaps it has parameters)",
+                "cannot be used as accelerator signal %s",
                 accel_signal,
-                gtk_type_name (GTK_OBJECT_TYPE (object)));
-
+                gtk_type_name (GTK_OBJECT_TYPE (object)),
+                query.n_params > 0 ? "(extraneous parameters are not supported)" : "");
       return;
     }
 
index 1758048ffdc87dd2e464fa93293b049951caa190..9f70e393cc1c7c36feb181f7e09eeb3b9036e1ea 100644 (file)
 extern "C" {
 #endif /* __cplusplus */
 
+
+/* Anchor types */
+typedef enum
+{
+  GTK_ANCHOR_CENTER,
+  GTK_ANCHOR_NORTH,
+  GTK_ANCHOR_NORTH_WEST,
+  GTK_ANCHOR_NORTH_EAST,
+  GTK_ANCHOR_SOUTH,
+  GTK_ANCHOR_SOUTH_WEST,
+  GTK_ANCHOR_SOUTH_EAST,
+  GTK_ANCHOR_WEST,
+  GTK_ANCHOR_EAST,
+  GTK_ANCHOR_N         = GTK_ANCHOR_NORTH,
+  GTK_ANCHOR_NW                = GTK_ANCHOR_NORTH_WEST,
+  GTK_ANCHOR_NE                = GTK_ANCHOR_NORTH_EAST,
+  GTK_ANCHOR_S         = GTK_ANCHOR_SOUTH,
+  GTK_ANCHOR_SW                = GTK_ANCHOR_SOUTH_WEST,
+  GTK_ANCHOR_SE                = GTK_ANCHOR_SOUTH_EAST,
+  GTK_ANCHOR_W         = GTK_ANCHOR_WEST,
+  GTK_ANCHOR_E         = GTK_ANCHOR_EAST
+} GtkAnchorType;
+
 /* Arrow types */
 typedef enum
 {
@@ -103,6 +126,15 @@ typedef enum
   GTK_ICON_SIZE_DIALOG
 } GtkIconSize;
 
+/* side types */
+typedef enum
+{
+  GTK_SIDE_TOP,
+  GTK_SIDE_BOTTOM,
+  GTK_SIDE_LEFT,
+  GTK_SIDE_RIGHT
+} GtkSideType;
+
 /* Reading directions for text */
 typedef enum
 {
index 5fd4d9c7790616d80367d0bf9afae8d1577f7572..35a1dc59219d3e10d5c25b5228fbfdd3ce450d07 100644 (file)
@@ -944,6 +944,9 @@ gtk_main_do_event (GdkEvent *event)
     case GDK_DROP_START:
       gtk_drag_dest_handle_event (event_widget, event);
       break;
+    default:
+      g_assert_not_reached ();
+      break;
     }
   
   tmp_list = current_events;
index 130e35418fd4fd399430d0a28541ea88bb18d783..bceefef6909e1e0e821138ed2709ab0aeff2d47e 100644 (file)
@@ -58,35 +58,6 @@ typedef enum
     GTK_FILL_Y        = 1 << 2
 } GtkPackerOptions;
 
-typedef enum
-{
-    GTK_SIDE_TOP,
-    GTK_SIDE_BOTTOM,
-    GTK_SIDE_LEFT,
-    GTK_SIDE_RIGHT
-} GtkSideType;
-
-typedef enum
-{
-  GTK_ANCHOR_CENTER,
-  GTK_ANCHOR_NORTH,
-  GTK_ANCHOR_NORTH_WEST,
-  GTK_ANCHOR_NORTH_EAST,
-  GTK_ANCHOR_SOUTH,
-  GTK_ANCHOR_SOUTH_WEST,
-  GTK_ANCHOR_SOUTH_EAST,
-  GTK_ANCHOR_WEST,
-  GTK_ANCHOR_EAST,
-  GTK_ANCHOR_N =       GTK_ANCHOR_NORTH,
-  GTK_ANCHOR_NW        =       GTK_ANCHOR_NORTH_WEST,
-  GTK_ANCHOR_NE        =       GTK_ANCHOR_NORTH_EAST,
-  GTK_ANCHOR_S =       GTK_ANCHOR_SOUTH,
-  GTK_ANCHOR_SW        =       GTK_ANCHOR_SOUTH_WEST,
-  GTK_ANCHOR_SE        =       GTK_ANCHOR_SOUTH_EAST,
-  GTK_ANCHOR_W =       GTK_ANCHOR_WEST,
-  GTK_ANCHOR_E =       GTK_ANCHOR_EAST
-} GtkAnchorType;
-
 struct _GtkPackerChild
 {
   GtkWidget *widget;